import request from "../utils/request";

export const getCommentAPI=(params)=>{
  return request({
    url:'/comment/getComment',
    method:'get',
    params:params
  })
}

export const addCommentAPI=(params)=>{
  return request({
    url:'/comment/addComment',
    method:'post',
    data:params
  })
}

export const isGoodAPI=(userId,id)=>{
  return request({
    url:'/comment/good',
    method:'put',
    params:{
      userId:userId,
      id:id
    }
  })
}

export const noGoodAPI=(userId,id)=>{
  return request({
    url:'/comment/noGood',
    method:'put',
    params:{
      userId:userId,
      id:id
    }
  })
}